<%= form_for(@new_person) do |f| %>
  <% if @new_person.errors.any? %>
    <div id="error_explanation">
      <ul>
        <% @new_person.errors.full_messages.each do |msg| %>
          <li><%= msg %></li>
        <% end %>
      </ul>
    </div>
  <% end %>
  <h3>Create New</h3>
  <table class="new">
    <tr>
      <td><%= f.label "Name" %></td>
      <td><div class="field"><%= f.text_field :name,:size=>22 %>
      </div><%= f.label "Opening Balance"%>
    <div class="field"><%= f.text_field :opening_balance,:size=>13 %></div></td>
</tr>
<tr>
  <td><%= f.label "Address" %></td>
  <td ><div class="field"><%= f.text_area :address,:cols => "53", :rows => "2" %></div></td>
</tr>
<tr>
  <td><%= f.label "Phone" %></td>
  <td><div class="field"><%= f.telephone_field :landline,:size=>13 %></div>
    <%= f.label "Mobile"%>
    <div class="field"> 1.<%= f.text_field :mobile1,:size=>10 %></div><div class="field">2.<%= f.text_field :mobile2,:size=>10 %></div>
    <div class="actions"><%= f.submit "Save" %></div></td>
</tr>
</table>
<%= f.hidden_field :group %>
<% end %>
